﻿<?php
session_start();
if (isset($_SESSION['user'])){
	echo $_SESSION['user'] . "<br />";
	echo "you already login!! <br />";
	
	echo "<form name='input' action='logout.php' method='post' />
			<input type='submit' value='logout' />
			</form>";
	

} else {
		echo "
		<html>
			<head>
				<title>로그인</title>
			</head>
			<body>
				<h1>아이디와 비밀번호를 입력하시오.</h1>
				<form name='input' action='login.php' method='post'>
					아이디 : <input type='text' name='id' /><br />
					비밀번호 : <input type='password' name='password' /><br />
					<input type='submit' value='Login' />
				</form>
				<form name='input' action='createMemberForm.php' method='post'>
					언규와 함께해요. ----->>>> <input type='submit' value='회원가입' />
				</form>
				
				<form action='upload.php' method='post' enctype='multipart/form-data' />
					<div>
						<input type='hidden' name='MAX_FILE_SIZE' value='10000000' />
						<label for='userfile'> uplode file</label>
						<input type='file' name='userfile' id='userfile' />
						<input type='submit' value='send' />
					</div>
				</form>
				
			</body>
		</html>
		";
	}
?>
